<?php $this->context->layout = 'fullout'; $url = $this->context->id.'/'.$this->context->action->id;?>

<style>
    legend {
        width: auto !important;
        border-style: none !important;
    }
</style>
<div class="ui-layout-center ui-layout-pane">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <div class="layui-tab layui-tab-brief">
                    <ul class="layui-tab-title">
                        <?php foreach ($this->params['nav_all'] as $para):?>
                            <li class="<?=$url==$para['url']?'layui-this':''?>"><a href="<?=\yii\helpers\Url::to([$para['url']])?>"><?=$para['name']?></a></li>
                        <?php endforeach;?>
                    </ul>
                </div>
                <div class="layui-card-body">
                    <div class="layui-collapse like-layui-collapse" lay-accordion=""
                         style="border:1px dashed #c4c4c4">
                        <div class="layui-colla-item">
                            <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示<i
                                        class="layui-icon layui-colla-icon"></i></h2>
                            <div class="layui-colla-content layui-show">
                                <p>*设置<a href="https://www.qiniu.com" target="view_window">七牛云</a>。具体看各配置描述信息；</p>
                            </div>
                        </div>
                    </div>
                </div>
                <form class="form-horizontal" id="form-config-site-site" action="<?= \yii\helpers\Url::to(['system/storage']) ?>">
                    <fieldset class="layui-elem-field layui-field-title site-title">
                        <legend><a name="use">七牛云设置</a></legend>
                    </fieldset>
                    <div class="form-group">
                        <label class="col-sm-2 control-label is-required">AK：</label>
                        <div class="col-sm-9">
                            <input type="text" name="qiniu_ak" value="<?=$model->qiniu_ak?>" class="form-control" autocomplete="off">
                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 查看方式 个人中心=》密钥管理=>AK</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label is-required">SK：</label>
                        <div class="col-sm-9">
                            <input type="text" name="qiniu_sk" value="<?=$model->qiniu_sk?>" class="form-control" autocomplete="off">
                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 查看方式 个人中心=》密钥管理=>SK</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label is-required">存储空间：</label>
                        <div class="col-sm-9">
                            <input type="text" name="qiniu_bucket" value="<?=$model->qiniu_bucket?>" class="form-control" autocomplete="off">
                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 查看方式 控制台=》对象存储=>空间管理</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label is-required">域名：</label>
                        <div class="col-sm-9">
                            <input type="text" name="qiniu_domain" value="<?=$model->qiniu_domain?>" class="form-control" autocomplete="off">
                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 查看方式 控制台=》对象存储=>空间管理=>概览=>CDN加速域名</span>
                        </div>
                    </div>
                    <div class="form-group text-center mt20">
                        <a href="javascript:;" class="btn btn-success btn-mid b5submit_btn"
                           data-target="form-config-site-site" data-title="确定提交对象存储设置" data-url="<?=\yii\helpers\Url::to(['preserve'])?>">保存</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<?php $this->beginBlock('script'); ?>
<script>
    layui.use('element', function () {
        var element = layui.element;
    });
</script>
<?php $this->endBlock(); ?>

